<%@ page language="java" contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>jsontest</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function() {
	$("#btn").click(function() {
		var url=$("#txt").val();
		$.get(url, null, function(result) {
			$("#result").text(result);
		});
	});
});
</script>
</head>
<body>
url: <input id="txt" type="text" /> <br/>
<input id="btn" type="button" value="json test" /> <br/>
<div id="result" style="font-size:12px;">

</div>
</body>
</html>